/*
 * cfb_console.h
 *
 *  Created on: Jul 27, 2019
 *      Author: databus
 */

#ifndef SYLIXOS_DRIVER_CONSOLE_CFB_CONSOLE_H_
#define SYLIXOS_DRIVER_CONSOLE_CFB_CONSOLE_H_

/*****************************************************************************/
/* Config Macros         */
/*****************************************************************************/
#define VIDEO_FB_LITTLE_ENDIAN      1
#define FONT_8X16                   1
//#define CONFIG_VIDEO_SW_CURSOR    1
#define CONSOLE_BG_COL              TEXT_BLACK
#define CONSOLE_FG_COL              TEXT_BIOS_WHITE
#define TAB_WIDTH                   4

int fbcon_init (void);
void fbcon_putc (char c);

void  fbcon_set_cursor (int row, int col);
void  fbcon_get_cursor (int *row, int *col);
void  fbcon_set_fgcolor (unsigned char color);

int fbcon_get_cols(void);
int fbcon_get_rows(void);

#endif /* SYLIXOS_DRIVER_CONSOLE_CFB_CONSOLE_H_ */
